package com.zhaoyun.test;


import android.content.Context;

/**
 * Created by suche on 2017/11/3.
 */

public class ChargeSerialController extends ChargeSerialHelper {

    public static final String TAG = "ChargeSerialController";

    public ChargeSerialController(Context context) {
        super(context, 1);
    }

    public void closePort() {
        MyLog.d("tag", "closeSerialPort.....");
        closeComPort();
    }

    public void openPort() {
        MyLog.d("tag", "openSerialPort.....");
        openComPort();
    }

    //openChargeByIdCmd
    public void openCharge(int index) {
        opneChargeSeial(index);
    }

    public void closeCharge(int index){
        closeChargeSerial(index);
    }
}
